package com.fzdy.dataplatform.dao.impl;

import com.fzdy.dataplatform.core.dao.impl.BaseDaoImpl;
import com.fzdy.dataplatform.dao.UserKtvDao;
import com.fzdy.dataplatform.entity.UserKtv;
import org.hibernate.criterion.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UserKtvDaoImpl extends BaseDaoImpl<UserKtv> implements UserKtvDao {

    @Override
    public List<UserKtv> findByExampleEq(UserKtv example, String order) {
        return this.findByExampleEq(example, Order.asc(order));
    }
}
